package com.leetcode.LC;

public class LC1486 {
    public int xorOperation(int n, int start) {
        int rs = start;
        for (int i = 1; i < n; i++) {
            start += 2;
            rs ^= start;
        }
        return rs;
    }
}
